From 83a241eb5f8111704da0bfd7d83036644bb94aed Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 2 Jun 2005 23:20:36 +0000 Subject: [PATCH] From Andrew Kirmse: fix intermittent Garmin USB problem on Windows. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1176 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/jeeps/gpsserial.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpsbabel/jeeps/gpsserial.c b/gpsbabel/jeeps/gpsserial.c index 9e8eb41ad..4883b93a3 100644 --- a/gpsbabel/jeeps/gpsserial.c +++ b/gpsbabel/jeeps/gpsserial.c @@ -178,6 +178,9 @@ int32 GPS_Serial_Chars_Ready(int32 fd) int32 GPS_Serial_Wait(int32 fd) { + + if (gps_is_usb) return 1; + /* Wait a short time before testing if data is ready. * The GPS II, in particular, has a noticable time responding * with a response to the device inquiry and if we give up on this -- 2.30.2